let http = require('http')
let mixin = require('merge-descriptors')

let proto = Object.create(null)

proto.listen = function(port) {
  let server = http.createServer(this)
  return server.listen.apply(server, arguments)
}

module.exports = function createServer() {
  let app = function(req, res) {
    res.end('Response From Server')
  }
  mixin(app, proto)
  return app
}